import axios from 'axios'

export default {
    decryptionFile(file) {
        let xmls = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.curr.megmeet.kmss.landray.com/">\n' +
            '   <soapenv:Header/>\n' +
            '   <soapenv:Body>\n' +
            '      <web:decryptionFile>\n' +
            '         <!--Optional:-->\n' +
            '         <arg0>' + file + '</arg0>\n' +
            '      </web:decryptionFile>\n' +
            '   </soapenv:Body>\n' +
            '</soapenv:Envelope>'
        return axios.post('https://eip.megmeet.com:8443/sys/webservice/megmeetWebservice?wsdl', xmls,
            {
                headers: {
                    'Content-Type': 'text/xml',
                }
            })
    }
}